package com.etc.service;

import com.etc.dao.UserDao;
import com.etc.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 杰哥
 * @Title: UserServiceImpl
 * @ProjectName myssm
 * @Description: TODO
 * @date 2019/7/3118:30
 */
@Service
public class UserService implements UserDao {
    @Autowired
    private UserDao userDao;
    @Override
    public Integer insert(User user) {
        return userDao.insert(user);
    }


    @Override
    public Integer deleteById(int uid) {
        return userDao.deleteById(uid);
    }

    @Override
    public Integer update(User user) {
        return userDao.update(user);
    }

    @Override
    public List<User> select() {
        return userDao.select();
    }

    @Override
    public User findById(int uid) {
        return userDao.findById(uid);
    }

    @Override
    public User selectName(String username) {

        return userDao.selectName(username);

    }
}
